package com.zyz.system.model.question;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zyz.common.core.model.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@TableName(value = "tb_question")
@Getter
@Setter
@ToString
public class Question extends BaseEntity {

    // 雪花算法
    @TableId(type = IdType.ASSIGN_ID)
    private Long questionId;  // 题目id

    private String title;   // 题目标题

    private Integer difficulty;  // 题目难度 1:简单 2:中等 3:困难

    private Long timeLimit;  // 时间限制(毫秒)

    private Long spaceLimit;  // 空间限制(字节)

    private String content;  // 题目内容

    private String questionCase; // 题目用例

    private String defaultCode;  // 默认代码块

    private String mainFunc;  // main函数

}
